package service;

import java.util.ArrayList;
import java.util.HashMap;

import vo.OrderListVO;
import vo.SellerVO;
import dao.SellerDAO;

public class SellerService {
	private SellerDAO seldao;
	
	public SellerDAO getSellerDAO() {return seldao;}
	public void setSellerDAO(SellerDAO seldao) {this.seldao = seldao;}
	
	public void stockStore(SellerVO selvo)  {
		seldao.insertStore(selvo);
	}
	public SellerVO getselectStoreById(String member_id){
		return seldao.selectStoreById(member_id);
	}
	public ArrayList<SellerVO> getSelectAllStore() {
		return (ArrayList<SellerVO>)seldao.selectAllStore();
	 
	}
	public void modifyStore (SellerVO selvo){
		seldao.updateStore(selvo);
	}
	public int deleteStore (String member_id){
		return seldao.deleteStoreById(member_id);
	}
	public ArrayList<OrderListVO> selectTotalPrice(String member_id){
		return seldao.SearchAllPriceById(member_id);
	}
	public int selectTotalPrice2(String member_id){
		return seldao.SearchAllPriceByIdSum(member_id);
	}
	public ArrayList<OrderListVO> selectSeasonPrice(HashMap hMap){
		return seldao.SearchSeasonPriceById(hMap);
	}
	public int selectTotalPriceDateSum(HashMap hMap) {
		return seldao.selectTotalPriceDateSum(hMap);
	}
}
